//
//  NetRequestClass.h
//  MyFrameWork
//
//  Created by eason on 16/4/25.
//  Copyright © 2016年 普惠. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface NetRequestClass : NSObject

#pragma 监测网络的可链接性
+ (BOOL) netWorkReachabilityWithURLString:(NSString *)strUrl;

#pragma POST请求
+ (void) NetRequestPOSTWithRequestURL:(NSString *)requestURLString
                        WithParameter:(NSDictionary *)parameter
                 WithReturnValueBlock:(ReturnValueBlock)block
                   WithErrorCodeBlock:(ErrorCodeBlock) errorBlock
                     WithFailureBlock:(FailureBlock) failureBlock;

+ (void) NetRequestPOSTWithRequestURL:(NSString *)requestURLString
                        WithParameter:(NSDictionary *)parameter
                            WithImage:(UIImage *)image
                 WithReturnValueBlock:(ReturnValueBlock)block
                   WithErrorCodeBlock:(ErrorCodeBlock)errorBlock
                     WithFailureBlock:(FailureBlock)failureBlock;

#pragma GET请求
+ (void) NetRequestGetWithRequestURL:(NSString *)requestURLString
                        WithParmeter:(NSDictionary *)parameter
                WithReturnValueBlock:(ReturnValueBlock)block
                  WithErrorCodeBlock:(ErrorCodeBlock)errorBlock
                    WithFailureBlock:(FailureBlock)failureBlock;

@end
